package com.wy.inter3;

public class mian {
    public static void main(String[] args) {
        TextConvertFactory textConvertFactory = ConvertManage.getDocumentConvertFactory().getTextConvertFactory();
        TextToImageConvert textToImageConvert = textConvertFactory.getTextToImageConvert();
        byte[] covert = textToImageConvert.covert(new byte[1024],FileType.IMAGE);

        ImageProcessor imageProcessor = new ImageProcessor();
        imageProcessor.setFile(covert);
        imageProcessor.set1();
        imageProcessor.set2();
        byte[] handle = imageProcessor.handle();
//        好  这就是文件转换的完整处理过程
    }
}
